﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

@model PessModel.Archive

@{
    ViewBag.Title = "创建档案";
}
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>

<div id="m-title">
    <h2>创建档案</h2>
    <div id="m-op">
        @Html.ActionLink("返回档案列表", "Index", new { activityID = ViewBag.ActivityID }, new { @class = "f-btn-long" })
    </div>
</div> 

@using (Html.BeginForm()) {

    <fieldset class="edit">
        <p>@Html.ValidationSummary(true)</p>
        @if(Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "ProjectTitle"))
         {
         <div class="m-inline">
            <span>
                @Html.LabelFor(model => model.ProjectTitle)：
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.TextBoxFor(model => model.ProjectTitle, new { @class = "f-it-long",style="width:500px;" })<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.ProjectTitle)
        </div>
        }
        @if(true){
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.ProjectTitle)*@
                @*@PessResources.Archive.SerialNumber*@
                @*@ViewBag.ArchiveSerialNumberDisplayName：*@
                @Html.DisplayNameFor(model => model.SerialNumber)：&emsp;
            </span>
            @Html.EditorFor(model => model.SerialNumber) <span class="f-warn"> (如没有则不填) </span>
            @Html.ValidationMessageFor(model => model.SerialNumber)
        </div>
        }
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "SubjectID"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.SubjectID, "Subject")*@
                @*@PessResources.Archive.SubjectName*@
                @*@ViewBag.ArchiveSubjectNameDisplayName*@
                @Html.DisplayNameFor(model => model.SubjectID)：&#8195;
            </span>
            @Html.DropDownList("SubjectID", String.Empty)<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.SubjectID)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "CountyCode"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.CountyCode)*@
                @*@PessResources.Archive.CountyName*@
                @*@ViewBag.ArchiveCountyNameDisplayName*@
                @Html.DisplayNameFor(model => model.CountyCode)：
            </span>
            @Html.DropDownList("CountyCode")<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "TeacherName"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.TeacherName)*@
                @*@PessResources.Archive.TeacherName*@
                @*@ViewBag.ArchiveTeacherNameDisplayName*@
                @Html.DisplayNameFor(model => model.TeacherName)：&#8195;
            </span>
            @Html.EditorFor(model => model.TeacherName)
            @Html.ValidationMessageFor(model => model.TeacherName)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "Birthdate"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.Birthdate)*@
                @*出生日期：*@
                @Html.DisplayNameFor(model => model.Birthdate)：
            </span>
            <input type="text" id="Birthdate" name="Birthdate" value="@Html.DisplayFor(model => model.Birthdate)">
            @Html.ValidationMessageFor(model => model.Birthdate)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "Gender"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.Gender)*@
                @*性别*@
                @Html.DisplayNameFor(model => model.Gender)：&#8195;&#8195;
            </span>
            @Html.DropDownList("Gender")
            @Html.ValidationMessageFor(model => model.Gender)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "YearsofTeachings"))
{
    <div class="m-inline">
        <span>
            @*@Html.LabelFor(model => model.Gender)*@
            @*性别*@
            @Html.DisplayNameFor(model => model.YearsofTeachings)：&#8195;&#8195;
        </span>
        @Html.EditorFor(model => model.YearsofTeachings)
        @Html.ValidationMessageFor(model => model.YearsofTeachings)
    </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "ProfessionalTitle"))
{
    <div class="m-inline">
        <span>
            @Html.DisplayNameFor(model => model.ProfessionalTitle)：&#8195;&#8195;
        </span>
        @Html.EditorFor(model => model.ProfessionalTitle)
        @Html.ValidationMessageFor(model => model.ProfessionalTitle)
    </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "ProjectMembers"))
{
    <div class="m-inline">
        <span>
            @Html.DisplayNameFor(model => model.ProjectMembers)：&#8195;&#8195;
        </span>
        @Html.EditorFor(model => model.ProjectMembers)
        @Html.ValidationMessageFor(model => model.ProjectMembers)
    </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "PhoneNumber"))
{
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.PhoneNumber)*@
                @*电话号码*@
                @Html.DisplayNameFor(model => model.PhoneNumber)：&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "MailAddress"))
{
    <div class="m-inline">
        <span>
            @*@Html.LabelFor(model => model.PhoneNumber)*@
            @*电话号码*@
            @Html.DisplayNameFor(model => model.MailAddress)：&#8195;&#8195;
        </span>
        @Html.EditorFor(model => model.MailAddress)
        @Html.ValidationMessageFor(model => model.MailAddress)
    </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "AuthorSSID"))
{
        <div class="m-inline">
            <span>
                @Html.LabelFor(model => model.AuthorSSID)：
            </span>
            @Html.EditorFor(model => model.AuthorSSID)
            @Html.ValidationMessageFor(model => model.AuthorSSID)
        </div>
}
 @if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "EducationDegree"))
 {
        <div class="m-inline">
            <span>                
                @*学历 &#8195;&#8195;*@
                @Html.LabelFor(model => model.EducationDegree)：
            </span>
            @Html.EditorFor(model => model.EducationDegree)
            @Html.ValidationMessageFor(model => model.EducationDegree)
        </div>
 }
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "GradeLevel"))
{
        <div class="m-inline">
            <span>
                @*任教年级*@
                @Html.LabelFor(model => model.GradeLevel)：&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.GradeLevel)
            @Html.ValidationMessageFor(model => model.GradeLevel)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "SchoolName"))
{
        <div class="m-inline">
            <span>
                @Html.LabelFor(model => model.SchoolName)：
                @*@PessResources.Archive.SchoolName*@
                @*@ViewBag.ArchiveSchoolNameDisplayName*@
            </span>
            @Html.EditorFor(model => model.SchoolName)
            @Html.ValidationMessageFor(model => model.SchoolName)
        </div>
 }
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "SchoolAddress"))
{
        <div class="m-inline">
            <span>
                @*学校地址*@
                @Html.LabelFor(model => model.SchoolAddress)：
            </span>
            @Html.EditorFor(model => model.SchoolAddress)
            @Html.ValidationMessageFor(model => model.SchoolAddress)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "ZipCode"))
{
        <div class="m-inline">
            <span>
                @Html.LabelFor(model => model.ZipCode)：
            </span>
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "SchoolPrincipal"))
{
        <div class="m-inline">
            <span>
                @*校长*@
                @Html.LabelFor(model => model.SchoolPrincipal)：&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.SchoolPrincipal)
            @Html.ValidationMessageFor(model => model.SchoolPrincipal)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "SchoolComment"))
{        
        <div class="m-inline">
            <span class="f-lg-gs">
                @*学校评语*@
                @Html.LabelFor(model => model.SchoolComment)：&#8195;&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.SchoolComment)
            @Html.ValidationMessageFor(model => model.SchoolComment)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "CountyEBComment"))
{
        <div class="m-inline">
            <spann class="f-lg-gs">
                @*区县评语*@
                @Html.LabelFor(model => model.CountyEBComment)：
            </spann>
            @Html.EditorFor(model => model.CountyEBComment)
            @Html.ValidationMessageFor(model => model.CountyEBComment)
        </div>
}
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "CountyCommitteeComment"))
{
        <div class="m-inline">
            <spann class="f-lg-gs">
                @Html.LabelFor(model => model.CountyCommitteeComment)：
            </spann>
            @Html.EditorFor(model => model.CountyCommitteeComment)
            @Html.ValidationMessageFor(model => model.CountyCommitteeComment)
        </div>
}
        @*<div class="m-inline"> This value is for the Admin to decided, after archive has been created.
            <spann class="f-lg-gs">
                @Html.LabelFor(model => model.ScheduledDate)：
            </spann>
            @Html.EditorFor(model => model.ScheduledDate)
            @Html.ValidationMessageFor(model => model.ScheduledDate)
        </div>*@
 @if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "DrivingDirections"))
 {
               <div class="m-inline">
            <spann class="f-lg-gs">
                @Html.LabelFor(model => model.DrivingDirections)：
            </spann>
            @Html.EditorFor(model => model.DrivingDirections)
            @Html.ValidationMessageFor(model => model.DrivingDirections)
        </div>
 }
@if (Html.CheckVisibility((IEnumerable<PessModel.ArchiveDisplayName>)ViewBag.ArchiveDisplayNames, "PreviousSN"))
{
        <div class="m-inline">
            <span>
                @*历史档案号*@
                @Html.LabelFor(model => model.PreviousSN)：
            </span>
            @Html.EditorFor(model => model.PreviousSN)
            @Html.ValidationMessageFor(model => model.PreviousSN)
        </div>
}
        <div class="m-inline f-ta-lt">
            <input type="submit" value="新建并显示详细信息" class="u-btn u-btn-save2" />
        </div>


            @*@Html.LabelFor(model => model.Subject.ActivityID, "Activity")*@
            @*@Html.DropDownList("ActivityID", String.Empty)
            @Html.ValidationMessageFor(model => model.Subject.ActivityID)*@
            @Html.Hidden("ActivityID",(int)ViewBag.ActivityID)
               
    </fieldset>
}


@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
<script>
        var pikaday1 = new Pikaday({
            field: document.getElementById('Birthdate'),
            firstDay: 1,
            minDate: new Date('1905-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [1905,2025],
            onSelect: function () { },
            onOpen: function () {
            }
        });
</script>